package myschool.myshchool15.mystudent;

import java.util.Scanner;

/**continue*/
public class ContinueTow {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double sum= 0;
        double score;
        int number;
        System.out.println("请输入班级总人数：");
        number = input.nextInt();
        for (int i = 1; i <=number ; i++) {
            System.out.println("请输入第"+i+"位学生的成绩：");
            score = input.nextDouble();
            if(score < 80){
                continue;
            }
            sum++;
        }
        System.out.println("80分以上的学生人数是："+sum);
        System.out.println("80分以上的学生所占的比例为："+(sum/number*100)+"%");
    }
}
